/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-11-23
 * Time: 12:11
 */
class Solution4 {
    public int singleNumber(int[] nums) {
        int ret = nums[0];
        for(int i = 1 ; i < nums.length ; i++){
            ret ^= nums[i];
        }
        return ret;

    }
}
public class Test4 {
}
